#pragma once
#include "panda_export.hpp"
#include <functional>

namespace Panda {
typedef std::function<void(int, const char** ips, int num)> OnResolve;
class PANDA_EXPORT Resolver {
 public:
  virtual ~Resolver() = default;
  virtual bool SyncResolver(const char* url, OnResolve on_resolver) = 0;
  virtual int AsyncResolver(const char* url, char* ips[], int max_size) = 0;
};
}  // namespace Panda